package com.hwc.demo.service;

import org.springframework.stereotype.Service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.hwc.demo.pub.service.TicketService;

@Service //消费者是普通的spring-component
public class UserService {
	@Reference //dubbo远程服务引用注解
	TicketService ticketService;
	
	public String orderTicket() {
		
		return "预定到" + ticketService.getTicket();
	}
}
